package edu.sctu.xialei.May.day20150519two;

/**
 * Created by Administrator on 5/19/2015.
 */
public class Printer {


    InterfaceOne interfaceOne = new InterfaceOne() {
        @Override
        public void printting(MyDatas myDatas) {

            System.out.println("姓名： " + myDatas.name + "  年龄： " + myDatas.age);
        }
    };



    public void printing_Call(InterfaceOne interfaceOne,MyDatas myDatas){

        interfaceOne.printting(myDatas );
    }
}
